<!DOCTYPE html>
<html lang="en">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="UTF-8">
    <title>悦定内容管理系统</title>

    <!--判断是否登陆-->
    <script type="text/javascript" src="../../vendor/jquery-2.0.3.min.js"></script>
    <script type="text/javascript" src="../../js/config.js"></script>
    <script type="text/javascript" src="../../js/jquerySession.js"></script>
    <script type="text/javascript">
        if ($.session.get('token') == null) {
            alert("用户未登录！");
            window.location.href = "../../login.html"
        }
    </script>

    <link href="../../css/common.css" rel="stylesheet">
    <link href="../../css/layout.css" rel="stylesheet">
    <link href="../../css/style_fy.css" rel="stylesheet">
    <script type="text/javascript" src="../../vendor/echarts.common.min.js"></script>
    <style>
        .explain-col {
            border: 1px solid #ffbe7a;
            zoom: 1;
            padding: 8px 10px;
            line-height: 20px;
        }
    </style>

    <link rel="stylesheet" href="../../css/layer.css" id="layui_layer_skinlayercss">
</head>

<body>
<div class="wrap">
    <!--header-->
    <div class="header">
        <div class="logo"></div>
        <h1 class="logo"><a href="#" title="内容管理"><img src="../../images/logo.png" title="内容管理" alt=""></a></h1>
        <div class="menu">
            <ul>

                <li class="">
                    <a href="../user/participant.html">用户</a>
                </li>
                <li class="">
                    <a href="../app/welcome.html">APP</a>
                </li>
                <li class="">
                    <a href="../match/matches.html">比赛</a>
                </li>
                <li class="">
                    <a href="../finance/ordermanagement_list.html">财务</a>
                </li>
                <li class="">
                    <a href="../message/sendLog.html">短信</a>
                </li>
                <li class="current">
                    <a href="../statistics/registeredUsers.html">统计</a>
                </li>

            </ul>
        </div>
        <div class="user">
            <!--导航条-->
            <ul class="user-main">
                <li id="li-1"><img src="../../images/noavator.png" class="herad-img">admin ( admin )<span></span></li>
            </ul>
            <!--隐藏盒子-->
            <div id="box-1" class="hidden-box hidden-loc-index">
                <ul>
                    <li>
                        <a href="#" data-href="../T/updatePasswd.html" class="edit">修改密码</a>
                    </li>
                    <li>
                        <a href="../../logout.html">安全退出</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!-- 左则栏-->
    <div class="sidebar-content">
        <ul id="accordion" class="accordion">
            <li class="open">
                <div class="link">
                    <img src="../../images/1.png"><i class="fa"></i>注册人数统计<i class="fa fa-chevron-down"></i>
                </div>
                <ul class="submenu" style="display: block">
                    <li><img src="../../images/4.png">
                        <a href="registeredUsers.html">注册人数统计图</a>
                    </li>

                </ul>
            </li>
            <li class="open">
                <div class="link">
                    <img src="../../images/1.png"><i class="fa"></i>报名人数统计<i class="fa fa-chevron-down"></i>
                </div>
                <ul class="submenu" style="display: block">
                    <li><img src="../../images/4.png">
                        <a href="userRentered.html">报名人数统计表</a>
                    </li>

                </ul>
            </li>
            <li class="open">
                <div class="link">
                    <img src="../../images/1.png"><i class="fa"></i>支付情况<i class="fa fa-chevron-down"></i>
                </div>
                <ul class="submenu" style="display: block">
                    <li><img src="../../images/4.png">
                        <a href="payment.html">支付情况统计图</a>
                    </li>

                </ul>
            </li>
        </ul>

    </div>
    <!--右侧 start-->
    <div class="right-content m_l_250">
        <div id="top-alert" class="fixed alert alert-error" style="display: none;">
            <button class="close fixed" style="margin-top: 4px;">&times;</button>
            <div class="alert-content">这是内容</div>
        </div>

        <div class="right-warp">
            <div class="content-title">
                <h1>报名人数统计</h1>
                <!--搜索条件-->
                <div class="content-btn" style="float:right">
                    <form name="searchform" action="" method="get">
                        <table width="100%" cellspacing="0" class="search-form">
                            <tbody>
                            <tr>
                                <td>
                                    <!--<div class="explain-col">-->
                                    <!--&lt;!&ndash;队伍名称：&ndash;&gt;-->
                                    <!--&lt;!&ndash;<input name="keyword" type="text" class="input-text" placeholder="请输入队伍名称" style="width:120px;" value="" />&ndash;&gt;-->
                                    <!--&lt;!&ndash;<input type="submit" name="search" class="button" value="搜索" />&ndash;&gt;-->
                                    <!--</div>-->
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </form>
                </div>
            </div>

            <!--表单开始-->
            <form name="myform" id="myform" action="" method="post">
                <table id="mytable" cellspacing="0" class="list-table">
                    <thead>
                    <tr>
                        <th>比赛名称</th>
                        <th>人数（人）</th>
                    </tr>
                    </thead>
                    <tbody id="signUp_list">

                    </tbody>
                </table>
            </form>
            <!--表单结束-->
            <div class="fy_box" id="pageGro">
                <div>
                    <a href="">
                        <span class="current">首页</span>
                    </a>
                    <a class="prev" href="">上一页</a>
                    <a class="next" href="">下一页</a>
                    <a class="num">
                        <input type="number" name="num"/>
                    </a>
                    <a class="run" href="">跳转</a>
                    <a class="last" href="">尾页</a>
                    <a class="first" href="">第1页</a>
                    <a class="total" href="">共1页</a>
                </div>
            </div>

        </div>
    </div>
    <!--右侧 end-->
</div>
<script type="text/javascript" src="signUp.js"></script>
<script type="text/javascript" src="../../vendor/layer.js"></script>
<script src="../../js/index.js"></script>
<script type="text/javascript" src="../../js/common.js"></script>
<script type="text/javascript">
    $(function () {
        $("#so_option").hover(function () {
            $(".soTypeList").show();
        });

        $("#so_option").hover(function () {
            $(".soTypeList").show();
        }, function () {
            $(".soTypeList").hide();
        });

        $(".soTypeList li").click(function () {
            $("#so_type").html($(this).html());
            $(".soTypeList").hide();
        });
        /* 左边菜单高亮 */
        var $subnav = $("#accordion"),
                url;
        url = window.location.pathname + window.location.search;
        url = url.replace(/(\/(p)\/\d+)|(&p=\d+)|(\/(id)\/\d+)|(&id=\d+)|(\/(group)\/\d+)|(&group=\d+)/, "");
        $subnav.find("a[href='" + url + "']").parent().addClass("current");

    });
</script>

<!-- 通用方法 -->
<script>
    //
    function confirm_submitAll(url, msg) {
        layer.confirm(msg, {
            btn: ['确定', '取消'] //按钮
        }, function () {
            submitForm(url, $('#myform'));
        }, function () {

        });
    }

    function confirm_deleteAll(url) {
        layer.confirm('你确认删除吗？', {
            btn: ['确定', '取消'] //按钮
        }, function () {
            submitForm(url, $('#myform'));
        }, function () {

        });
    }

    //ajax提交表单
    function submitForm(url, form) {
        $.post(url, form.serialize(), function (data) {
            if (data.status != -1 && data.status != 0) {
                layer.alert(data.msg, {
                    icon: 1,
                    time: 2000,
                    end: function () {
                        window.location.reload();
                    }
                });
            } else if (data.status == -1) {
                layer.alert(data.msg, {
                    icon: 2,
                    time: 2000,
                    end: function () {
                        window.location.reload();
                    }
                });
            } else if (data.status == 0) {
                layer.alert(data['info'], {
                    icon: 2,
                    time: 2000,
                    end: function () {
                        window.location.reload();
                    }
                });
            }
        })
    }

    //进行操作并提示，status不为-1则提示消息
    function doAction(url) {
        $.get(url, {}, function (data) {
            //            console.log(data);
            //            alert(data.status);
            //            alert(data.info);
            if (data.status != -1 && data.status != 0) {
                layer.alert(data.msg, {
                    icon: 1,
                    time: 2000,
                    end: function () {
                        window.location.reload();
                    }
                });
            } else if (data.status == -1) {
                layer.alert(data.msg, {
                    icon: 2,
                    time: 2000,
                    end: function () {
                        window.location.reload();
                    }
                });
            } else if (data.status == 0) {
                layer.alert(data['info'], {
                    icon: 2,
                    time: 2000,
                    end: function () {
                        window.location.reload();
                    }
                });
            }
        })
    }

    //询问并进行某个操作
    function confirmurl(url, msg) {
        layer.confirm(msg, {
            btn: ['确定', '取消'] //按钮
        }, function () {
            doAction(url);
        }, function () {
        });
    }

    //修改的iframe
    function edit(url, name, area) {
        if (area == 'undefined' || area == undefined)
            area = ['893px', '600px']
        layer.open({
            type: 2,
            title: '修改--' + name,
            shadeClose: false,
            shade: 0.4,
            maxmin: false, //开启最大化最小化按钮
            area: area,
            content: url,
            btn: ['确定', '取消'],
            yes: function (index, layero) { //或者使用btn1
                var body = layer.getChildFrame('body', index);
                var form = body.find('#dosubmit');
                form.click();
                return false;
            },
            cancel: function (index) { //或者使用btn2
                layer.closeAll();
            },
        });
    }

    //添加的弹出iframe
    function add(url, title, area) {
        if (area == 'undefined' || area == undefined)
            area = ['893px', '600px']
        layer.open({
            type: 2,
            title: title,
            shadeClose: false,
            shade: 0.4,
            maxmin: false, //开启最大化最小化按钮
            area: area,
            content: url,
            btn: ['确定', '取消'],
            yes: function (index, layero) { //或者使用btn1
                var body = layer.getChildFrame('body', index);
                var form = body.find('#dosubmit');
                form.click();
                return false;
            },
            cancel: function (index) { //或者使用btn2
                layer.closeAll();
            },
        });
    }

    /**
     * 全选checkbox,注意：标识checkbox id固定为为check_box
     * @param string name 列表check名称,如 uid[]
     */
    function selectall(name) {
        if ($("#check_box").attr("checked") == false) {
            $("input[name='" + name + "']").each(function () {
                this.checked = false;
            });
        } else {
            $("input[name='" + name + "']").each(function () {
                this.checked = true;
            });
        }
    }
</script>
<script type="text/javascript">
    var myChart = echarts.init(document.getElementById('main'));
    var option = {
        title: {
            text: ''
        },
        tooltip: {},
        legend: {
            data: ['注册人数']
        },
        xAxis: {
            data: ["2016/06", "2016/07", "2016/08", "2016/09", "2016/10"]
        },
        yAxis: {},
        series: [{
            name: '注册人数',
            type: 'bar',
            data: [45, 66, 80, 110, 60]
        }]
    };

    // 使用刚指定的配置项和数据显示图表。
    myChart.setOption(option);
</script>
</body>

</html>